// 地址接口
import request from '../utils/request'
// 获取地址列表接口
export function getAddressList(){
  return request("/ljf/user/shipping-address/list","get",{token:wx.getStorageSync("token")})
}
// 获取省的列表接口
export function getProvice(){
  return request("/common/region/v2/province","get",{token:wx.getStorageSync("token")})
}
// 获取市或县区
export function getCityAndArea(pid){
  return request("/common/region/v2/child","get",{pid:pid,token:wx.getStorageSync("token")})
}
// 添加地址接口
export function addAddressApi(data){
  return request("/ljf/user/shipping-address/add","post",data)
}
// 修改地址接口
export function editAddress(data){
  return request("/ljf/user/shipping-address/update","post",data)
}
// 删除地址接口
export function delAddress(id){
  return request("/ljf/user/shipping-address/delete","post",{id:id,token:wx.getStorageSync("token")})
}